home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
tclib20.zip
/
FINANCE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1988-12-03
|
1KB
|
31 lines
/* TCHK 2.0 - Howard Kapustein's Turbo C library 12-3-88 */
/* Copyright (C) 1988, Howard Kapustein. All rights reserved. */
/* finance.h - header file for finance.c - financial functions */
#ifndef FINANCE_HEADER
#define FINANCE_HEADER 1
#include <howard.h>
#define SLD(c,s,l) straight_line_dep(c,s,l)
#define SYD(c,s,l,p) sum_year_digits_dep(c,s,l,p)
#define DDB(c,l,p) double_decline_bal_dep(c,l,p)
#define ACC_SLD(c,s,l) accum_dep(c,s,l,0,1)
#define ACC_SYD(c,s,l,p) accum_dep(c,s,l,p,2)
#define ACC_DDB(c,l,p) accum_dep(c,0,l,p,3)
/* function prototypes */
double straight_line_dep(double cost, double salvage, int life);
double sum_year_digits_dep(double cost, double salvage, int life, int period);
double double_decline_bal_dep(double cost, int life, int period);
double depreciation(double cost, double salvage, int life, int period, int dtype);
double accum_dep(double cost, double salvage, int life, int period, int dtype);
double PMT(double principal, double interest, int periods);
double PV(double payment, double interest, int periods);
double PVa(double payment, double interest, int periods);
double FV(double payment, double interest, int periods);
double FVa(double payment, double interest, int periods);
#endif /* FINANCE_HEADER */